package com.ss.springboot1;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAspectJAutoProxy()
@EnableScheduling
public class DemoApplication {
    public static void main(String[] args) {

        SpringApplication.run(DemoApplication.class, args);
    }
}

////3.提供SpringBoot项目启动器（初始化项目内部Servite组件）
//public class DemoApplication extends SpringBootServletInitializer {
//    public static void main(String[] args) {
//
//        SpringApplication.run(DemoApplication.class, args);
//    }
////4.重写一个父类中的方法configure(),执行初始化项目启动类是谁（ DemoApplication）
//    @Override
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//        return builder.sources(DemoApplication.class);
//    }
//}
